package com.yycx.module.bus.client.entity.hy;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yycx.common.mybatis.annotation.TableAlias;

/**
 * 结算发票
 *
 * @author flyme
 * @date 2023-11-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_hyorder_inovice")
@TableAlias("bhi")
@ApiModel(value = "BusHyorderInovice对象", description = "结算发票")
public class BusHyorderInovice extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "inoviceId", type = IdType.ASSIGN_ID)
    private Long inoviceId;

    @ApiModelProperty(value = "发票号码")
    private String invoiceNo;

    @ApiModelProperty(value = "开票申请ID")
    private Long settleInvoiceId;

    @ApiModelProperty(value = "开票单位")
    private Long invoiceUnitId;

    @ApiModelProperty(value = "发票金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "开票金额")
    private BigDecimal invoiceAmount;

    @ApiModelProperty(value = "发票日期")
    private Date invoiceDate;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "发票类型")
    private Integer invoiceType;

    @ApiModelProperty(value = "不含税金额")
    private BigDecimal noTaxAmount;

    @ApiModelProperty(value = "税费")
    private BigDecimal taxAmount;

    @ApiModelProperty(value = "二次开票金额")
    private BigDecimal senondInvoiceAmount;

    @ApiModelProperty(value = "二次税费")
    private BigDecimal secondTaxAmount;

    @ApiModelProperty(value = "结算周期起始日期")
    private Date settleBeginDate;

    @ApiModelProperty(value = "结算周期截止日期")
    private Date settleEndDate;

    @ApiModelProperty(value = "销售额")
    private BigDecimal saleAmount;

    @ApiModelProperty(value = "账套")
    private Long companyId;

    @ApiModelProperty(value = "包票")
    private Integer baopiao;

    @ApiModelProperty(value = "税金公式")
    private String gthTax;

    @ApiModelProperty(value = "开票单位名称")
    private String invoiceUnitName;

    @ApiModelProperty(value = "银行名称")
    private String invoiceBankName;

    @ApiModelProperty(value = "银行卡号")
    private String invoiceBankNo;

    @ApiModelProperty(value = "申请人")
    private Long userId;


}
